<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
SoyTofu (Soy Complete)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="SoyTofu (Soy Complete)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.Renderer.html" title="interface in com.google.template.soy.tofu"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html?com/google/template/soy/tofu/SoyTofu.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SoyTofu.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.google.template.soy.tofu</FONT>
<BR>
Interface SoyTofu</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../com/google/template/soy/tofu/internal/BaseTofu.html" title="class in com.google.template.soy.tofu.internal">BaseTofu</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>SoyTofu</B></DL>
</PRE>

<P>
SoyTofu is the public interface for a Java object that represents a compiled Soy file set.

 <p> Important: Users should use the methods here (on a SoyTofu object created by Soy), but should
 not create their own implementations this interface.
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;interface</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.Renderer.html" title="interface in com.google.template.soy.tofu">SoyTofu.Renderer</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renderer for a template.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#addToCache(com.google.template.soy.msgs.SoyMsgBundle, com.google.template.soy.shared.SoyCssRenamingMap)">addToCache</A></B>(<A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle,
           <A HREF="../../../../../com/google/template/soy/shared/SoyCssRenamingMap.html" title="interface in com.google.template.soy.shared">SoyCssRenamingMap</A>&nbsp;cssRenamingMap)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Primes the cache with the given combination of SoyMsgBundle and SoyCssRenamingMap.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#forNamespace(java.lang.String)">forNamespace</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;namespace)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a new SoyTofu instance with a different namespace (or no namespace).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#getNamespace()">getNamespace</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the namespace of this SoyTofu object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;com.google.common.collect.ImmutableSortedSet&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#getUsedIjParamsForTemplate(com.google.template.soy.parseinfo.SoyTemplateInfo)">getUsedIjParamsForTemplate</A></B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the set of injected param keys used by a template (and its transitive callees).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;com.google.common.collect.ImmutableSortedSet&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#getUsedIjParamsForTemplate(java.lang.String)">getUsedIjParamsForTemplate</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the set of injected param keys used by a template (and its transitive callees).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#isCaching()">isCaching</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether this instance caches intermediate Soy trees after substitutions from the
 SoyMsgBundle and the SoyCssRenamingMap.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.Renderer.html" title="interface in com.google.template.soy.tofu">SoyTofu.Renderer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(com.google.template.soy.parseinfo.SoyTemplateInfo)">newRenderer</A></B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a new Renderer for a template.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.Renderer.html" title="interface in com.google.template.soy.tofu">SoyTofu.Renderer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(java.lang.String)">newRenderer</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a new Renderer for a template.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(com.google.template.soy.parseinfo.SoyTemplateInfo, java.util.Map, com.google.template.soy.msgs.SoyMsgBundle)">render</A></B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo,
       <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,?&gt;&nbsp;data,
       <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(com.google.template.soy.parseinfo.SoyTemplateInfo)"><CODE>newRenderer(SoyTemplateInfo)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(com.google.template.soy.parseinfo.SoyTemplateInfo, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)">render</A></B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo,
       <A HREF="../../../../../com/google/template/soy/data/SoyMapData.html" title="class in com.google.template.soy.data">SoyMapData</A>&nbsp;data,
       <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(com.google.template.soy.parseinfo.SoyTemplateInfo)"><CODE>newRenderer(SoyTemplateInfo)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(java.lang.String, java.util.Map, com.google.template.soy.msgs.SoyMsgBundle)">render</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName,
       <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,?&gt;&nbsp;data,
       <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(java.lang.String)"><CODE>newRenderer(String)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(java.lang.String, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)">render</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName,
       <A HREF="../../../../../com/google/template/soy/data/SoyMapData.html" title="class in com.google.template.soy.data">SoyMapData</A>&nbsp;data,
       <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(java.lang.String)"><CODE>newRenderer(String)</CODE></A>.</I></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getNamespace()"><!-- --></A><H3>
getNamespace</H3>
<PRE>
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getNamespace</B>()</PRE>
<DL>
<DD>Gets the namespace of this SoyTofu object. The namespace is simply a convenience allowing
 <code>newRenderer()</code> to be called with a partial template name (e.g. ".fooTemplate").
 Note: The namespace may be null, in which case <code>newRenderer()</code> must be called with the
 full template name.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>The namespace of this SoyTofu object, or null if no namespace.</DL>
</DD>
</DL>
<HR>

<A NAME="forNamespace(java.lang.String)"><!-- --></A><H3>
forNamespace</H3>
<PRE>
<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A> <B>forNamespace</B>(<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                     <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;namespace)</PRE>
<DL>
<DD>Gets a new SoyTofu instance with a different namespace (or no namespace).
 Note: The new SoyTofu instance will still be backed by the same compiled Soy file set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>namespace</CODE> - The namespace for the new SoyTofu instance, or null for no namespace.
<DT><B>Returns:</B><DD>A new SoyTofu instance with a different namespace (or no namespace).</DL>
</DD>
</DL>
<HR>

<A NAME="isCaching()"><!-- --></A><H3>
isCaching</H3>
<PRE>
boolean <B>isCaching</B>()</PRE>
<DL>
<DD>Gets whether this instance caches intermediate Soy trees after substitutions from the
 SoyMsgBundle and the SoyCssRenamingMap.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>Whether this instance caches intermediate Soy trees after substitutions from the
     SoyMsgBundle and the SoyCssRenamingMap.</DL>
</DD>
</DL>
<HR>

<A NAME="addToCache(com.google.template.soy.msgs.SoyMsgBundle, com.google.template.soy.shared.SoyCssRenamingMap)"><!-- --></A><H3>
addToCache</H3>
<PRE>
void <B>addToCache</B>(<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle,
                <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                <A HREF="../../../../../com/google/template/soy/shared/SoyCssRenamingMap.html" title="interface in com.google.template.soy.shared">SoyCssRenamingMap</A>&nbsp;cssRenamingMap)</PRE>
<DL>
<DD>Primes the cache with the given combination of SoyMsgBundle and SoyCssRenamingMap. Priming the
 cache will eliminate the slowness for the first render. This method must be called separately
 for each distinct combination of SoyMsgBundle and SoyCssRenamingMap for which you wish to prime
 the cache.

 Only applicable when <code>isCaching()</code> is true.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msgBundle</CODE> - The message bundle to prime the cache with.<DD><CODE>cssRenamingMap</CODE> - The CSS renaming map to prime the cache with.</DL>
</DD>
</DL>
<HR>

<A NAME="newRenderer(com.google.template.soy.parseinfo.SoyTemplateInfo)"><!-- --></A><H3>
newRenderer</H3>
<PRE>
<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.Renderer.html" title="interface in com.google.template.soy.tofu">SoyTofu.Renderer</A> <B>newRenderer</B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo)</PRE>
<DL>
<DD>Gets a new Renderer for a template.

 <p> The usage pattern is
   soyTofu.newRenderer(...).setData(...).setInjectedData(...).setMsgBundle(...).render()
 where any of the set* parts can be omitted if it's null.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateInfo</CODE> - Info for the template to render.
<DT><B>Returns:</B><DD>A new renderer for the given template.</DL>
</DD>
</DL>
<HR>

<A NAME="newRenderer(java.lang.String)"><!-- --></A><H3>
newRenderer</H3>
<PRE>
<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.Renderer.html" title="interface in com.google.template.soy.tofu">SoyTofu.Renderer</A> <B>newRenderer</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName)</PRE>
<DL>
<DD>Gets a new Renderer for a template.

 <p> The usage pattern is
   soyTofu.newRenderer(...).setData(...).setInjectedData(...).setMsgBundle(...).render()
 where any of the set* parts can be omitted if it's null.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateName</CODE> - The name of the template to render. If this SoyTofu instance is not
     namespaced, then this parameter should be the full name of the template including the
     namespace. If this SoyTofu instance is namespaced, then this parameter should be a partial
     name beginning with a dot (e.g. ".fooTemplate").
<DT><B>Returns:</B><DD>A new renderer for the given template.</DL>
</DD>
</DL>
<HR>

<A NAME="getUsedIjParamsForTemplate(com.google.template.soy.parseinfo.SoyTemplateInfo)"><!-- --></A><H3>
getUsedIjParamsForTemplate</H3>
<PRE>
com.google.common.collect.ImmutableSortedSet&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>getUsedIjParamsForTemplate</B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo)</PRE>
<DL>
<DD>Gets the set of injected param keys used by a template (and its transitive callees).

 <p> Note: The <code>SoyTemplateInfo</code> object already has a method <code>getUsedIjParams()</code>.
 That method should produce the same results as this method, unless the bundle of Soy files
 included when running the SoyParseInfoGenerator is different from the bundle of Soy files
 included when creating this SoyTofu object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateInfo</CODE> - Info for the template to get injected params of.
<DT><B>Returns:</B><DD>The set of injected param keys used by the given template.</DL>
</DD>
</DL>
<HR>

<A NAME="getUsedIjParamsForTemplate(java.lang.String)"><!-- --></A><H3>
getUsedIjParamsForTemplate</H3>
<PRE>
com.google.common.collect.ImmutableSortedSet&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>getUsedIjParamsForTemplate</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName)</PRE>
<DL>
<DD>Gets the set of injected param keys used by a template (and its transitive callees).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateName</CODE> - The name of the template to get injected params of.
<DT><B>Returns:</B><DD>The set of injected param keys used by the given template.</DL>
</DD>
</DL>
<HR>

<A NAME="render(com.google.template.soy.parseinfo.SoyTemplateInfo, java.util.Map, com.google.template.soy.msgs.SoyMsgBundle)"><!-- --></A><H3>
render</H3>
<PRE>
<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
</FONT><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>render</B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,?&gt;&nbsp;data,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(com.google.template.soy.parseinfo.SoyTemplateInfo)"><CODE>newRenderer(SoyTemplateInfo)</CODE></A>.</I>
<P>
<DD>Renders a template.

 <p> Note: If you call this method instead of
 <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(com.google.template.soy.parseinfo.SoyTemplateInfo, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)"><CODE>render(SoyTemplateInfo, SoyMapData, SoyMsgBundle)</CODE></A>,
 your template data will be converted to a <code>SoyMapData</code> object on each call. This may not
 be a big deal if you only need to use the data object once. But if you need to reuse the same
 data object for multiple calls, it's more efficient to build your own <code>SoyMapData</code> object
 and reuse it with <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(com.google.template.soy.parseinfo.SoyTemplateInfo, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)"><CODE>render(SoyTemplateInfo, SoyMapData, SoyMsgBundle)</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateInfo</CODE> - Info for the template to render.<DD><CODE>data</CODE> - The data to call the template with. Can be null if the template has no parameters.<DD><CODE>msgBundle</CODE> - The bundle of translated messages, or null to use the messages from the
     Soy source.
<DT><B>Returns:</B><DD>The rendered text.</DL>
</DD>
</DL>
<HR>

<A NAME="render(com.google.template.soy.parseinfo.SoyTemplateInfo, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)"><!-- --></A><H3>
render</H3>
<PRE>
<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
</FONT><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>render</B>(<A HREF="../../../../../com/google/template/soy/parseinfo/SoyTemplateInfo.html" title="class in com.google.template.soy.parseinfo">SoyTemplateInfo</A>&nbsp;templateInfo,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="../../../../../com/google/template/soy/data/SoyMapData.html" title="class in com.google.template.soy.data">SoyMapData</A>&nbsp;data,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(com.google.template.soy.parseinfo.SoyTemplateInfo)"><CODE>newRenderer(SoyTemplateInfo)</CODE></A>.</I>
<P>
<DD>Renders a template.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateInfo</CODE> - Info for the template to render.<DD><CODE>data</CODE> - The data to call the template with. Can be null if the template has no parameters.<DD><CODE>msgBundle</CODE> - The bundle of translated messages, or null to use the messages from the
     Soy source.
<DT><B>Returns:</B><DD>The rendered text.</DL>
</DD>
</DL>
<HR>

<A NAME="render(java.lang.String, java.util.Map, com.google.template.soy.msgs.SoyMsgBundle)"><!-- --></A><H3>
render</H3>
<PRE>
<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
</FONT><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>render</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,?&gt;&nbsp;data,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(java.lang.String)"><CODE>newRenderer(String)</CODE></A>.</I>
<P>
<DD>Renders a template.

 <p> Note: If you call this method instead of <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(java.lang.String, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)"><CODE>render(String, SoyMapData, SoyMsgBundle)</CODE></A>,
 your template data will be converted to a <code>SoyMapData</code> object on each call. This may not
 be a big deal if you only need to use the data object once. But if you need to reuse the same
 data object for multiple calls, it's more efficient to build your own <code>SoyMapData</code> object
 and reuse it with <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#render(java.lang.String, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)"><CODE>render(String, SoyMapData, SoyMsgBundle)</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateName</CODE> - The name of the template to render. If this SoyTofu instance is namespaced,
     then this parameter should be a partial name beginning with a dot (e.g. ".fooTemplate").<DD><CODE>data</CODE> - The data to call the template with. Can be null if the template has no parameters.<DD><CODE>msgBundle</CODE> - The bundle of translated messages, or null to use the messages from the
     Soy source.
<DT><B>Returns:</B><DD>The rendered text.</DL>
</DD>
</DL>
<HR>

<A NAME="render(java.lang.String, com.google.template.soy.data.SoyMapData, com.google.template.soy.msgs.SoyMsgBundle)"><!-- --></A><H3>
render</H3>
<PRE>
<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
</FONT><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>render</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;templateName,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="../../../../../com/google/template/soy/data/SoyMapData.html" title="class in com.google.template.soy.data">SoyMapData</A>&nbsp;data,
                         <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                         <A HREF="../../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.html#newRenderer(java.lang.String)"><CODE>newRenderer(String)</CODE></A>.</I>
<P>
<DD>Renders a template.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>templateName</CODE> - The name of the template to render. If this SoyTofu instance is namespaced,
     then this parameter should be a partial name beginning with a dot (e.g. ".fooTemplate").<DD><CODE>data</CODE> - The data to call the template with. Can be null if the template has no parameters.<DD><CODE>msgBundle</CODE> - The bundle of translated messages, or null to use the messages from the
     Soy source.
<DT><B>Returns:</B><DD>The rendered text.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../com/google/template/soy/tofu/SoyTofu.Renderer.html" title="interface in com.google.template.soy.tofu"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html?com/google/template/soy/tofu/SoyTofu.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SoyTofu.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

        
          <div id="footer">
            <div id="footerlogo" style="float:left">
              <img src="http://www.google.com/images/art.gif"
                   alt="Google colored balls">
            </div>
            <div id="copyright" style="float:left">
              <p>
                &copy; 2009 Google -
                <a href="http://www.google.com/privacy.html">Privacy Policy</a> -
                <a href="http://www.google.com/terms_of_service.html">Terms and Conditions</a> -
                <a href="http://www.google.com/about.html">About Google</a>
              </p>
            </div>
          </div>
        
      
</BODY>
</HTML>
